home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ WinNT AutoLogin Settings.xpl
< prev
next >
Wrap
Text File
|
1999-06-13
|
2KB
|
65 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="1"
"COUNT"="3"
"UIPATH"="Network\Login\Auto Login"
"NAME"="Settings"
"VERSION"="1.52"
"LANGUAGE"="VBScript"
"TEXT 1"="User name"
"TEXT 2"="Password"
"TEXT 3"="Domain"
"DESCRIPTION 1"="Auto login can be used to eliminate the "Press Ctrl+Alt+Del to login" screen."
"DESCRIPTION 2"="Enter your users information here. The value for "Domain" is needed only if you are using a domain, else leave it blank."
"DESCRIPTION 3"="When you are finished, apply your changes and select the "General" plug-in to activate auto logon."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
sRP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
Sub Plugin_Initialize
if RegPathExists(sRP) then
s=RegReadValue(srp&"DefaultUserName")
SetUIElement 1,s
s=RegReadValue(srp&"DefaultPassword")
SetUIElement 2,s
s=RegReadValue(srp&"DefaultDomain")
SetUIElement 3,s
else
Disable
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
Call RegWriteValue(srp&"DefaultUserName",s,1)
s=GetUIElement(2)
Call RegWriteValue(srp&"DefaultPassword",s,1)
s=GetUIElement(3)
If Len(s)>0 then
Call RegWriteValue(srp&"DefaultDomain",s,1)
else
s=RegReadValue(srp&"DefaultDomain")
if IsNull(s)=false and Len(s)>0 then
Call RegDeleteValue(srp&"DefaultDomain")
end if
end if
Logoff
End Sub
Sub Plugin_Terminate
End Sub